//数据类型验证
import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitData = itf({
    payload: itf({
        brands: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ],
        isDealerUser: 'boolean',
        country: 'string',
        city: 'string',
    })
});

export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            rowVersion: 'string',
            options: ['string']
        }))],
        totalElements: 'number',
    })
});

export const Detail = itf({
    payload: itf({
        id: 'string',
        options: ['string'],
        rowVersion: 'string'
    })
});

